import 'package:library_base/module/fb_module.dart';
import 'package:library_base/route/routers.dart';
import 'package:module_administrator/page/create_purchase_order/create_purchase_order_page.dart';
import 'package:module_administrator/page/workbanch_page.dart';

class AdministratorModule extends FBBaseModule {

  @override
  String moduleName() {
    return "module_administrator";
  }

  @override
  List<FBModuleChannel> registerModuleChannel() {
    return [];
  }

  @override
  List<FBModulePage> registerRoutes() {
    return [
      FBModulePage("工作台", [Routers.workbench], (params) => const WorkbenchPage()),
      FBModulePage("创建采购单", [Routers.createPurchaseOrderPage], (params) => const CreatePurchaseOrderPage()),
      // FBModulePage("测试StatelessPage1", [TestApi.statelessPage1],
      //     (arguments) => StatelessPage1()),
      // FBModulePage("文本和图片组合组件", [TestApi.textImageWidget],
      //     (arguments) => TextImagePage()),
      // FBModulePage("H5调试页", [TestApi.testWebPage], (arguments) => H5TestPage()),
      // FBModulePage("第一耶", [TestApi.routePage1], (arguments) => Page1()),
      // // FBModulePage("第一耶", [TestApi.p2PDemo], (arguments) => P2PDemo(url: "",)),
      // FBModulePage(
      //     "Sp调试页", [TestApi.routeSpUtils], (arguments) => SpUtilTestPage()),
      // FBModulePage(
      //     "列表调试页", [TestApi.routeListTest], (arguments) => ListTestPage()),
      // FBModulePage(
      //     "对话框调试", [TestApi.routeDialogTest], (arguments) => DialogTestPage()),
      // FBModulePage(
      //     "基础组件调试", [TestApi.routBasePageTest], (arguments) => BasePageTest()),
    ];
  }
}
